package cn.zust.edu.cn;

import java.awt.*;

public class Circle implements IShape{
        Point ptCenter;
        int radius;
        private Graphics graphics;

        Circle(Point center,int r){

        }
        public double perimeter(){
            return 3.14*radius*2;
        }

        public double area(){
            return 3.14*radius*radius;
        }

        public void draw(){
            graphics.drawOval(ptCenter.x, ptCenter.y, radius,radius);
        }
    }

